export const getStorage = (key?: string) => {
	return new Promise((resolve) => {
		resolve(window.$.sendSync('STORAGE-GET', { key }));
	});
};

export const saveStorage = (data: string) => {
	return new Promise((resolve) => {
		resolve(window.$.sendSync('STORAGE-SAVE', { data }));
	});
};
